/*
 *  Base.h
 *  NSE_SOLVER
 *
 *  Created by Patrick Zulian on 12/22/10.
 *  Copyright 2010 ICS - USI - Lugano. All rights reserved.
 *
 */




#ifndef NSE_SOLVER_BASE_H
#define NSE_SOLVER_BASE_H
// -------------------------------------------------------------------------

#include <assert.h>
#include <omp.h>


#ifdef _OPENMP
#define parallel_for _Pragma("omp parallel for")
#else
#define parallel_for //No OpenMP Support. 
#endif


//Macro to kill unused warnings
#define NSE_SOLVER_UNUSED(x) (void)x

//Macros to allow/wrap debugging and assertions
#ifndef NDEBUG

#define NSE_SOLVER_DEBUG(x) x
#define NSE_SOLVER_ASSERT(x) assert(x)

#else

#define NSE_SOLVER_DEBUG(x) /*x*/ //
#define NSE_SOLVER_ASSERT(x) /*x*/ //

#endif

namespace nsesolver {
	enum Dimensions {
		X = 0,
		Y = 1,
		Z = 2 
	};
	
	
typedef	unsigned int uint;
}


//typedef long double real;
// -------------------------------------------------------------------------
#endif

